package p0928;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.interactions.Actions;
public class MouseMoveDemo {
public static void main(String[] args) {
		WebDriver driver = new FirefoxDriver();
		driver.get("http://gov.bowker.com/gis/login");
		WebElement username = driver.findElement(By.id("username"));
		username.sendKeys("gistestacct");
		WebElement password= driver.findElement(By.id("password"));
		password.sendKeys("welcome");
		WebElement login = driver.findElement(By.id("submit"));
		login.click();
	    WebElement target = driver.findElement(By.xpath("//*[@id='siteHeadCont']/div/div[1]/ul/li[1]/a"));
	    System.out.println(target.getAttribute("rel"));
	    Actions move = new Actions(driver);
        move.moveToElement(target).perform();
 

	}

}
